#pragma once
#include <stdio.h>

typedef int SLDataTpye;

typedef struct SeqList
{
	SLDataTpye* a;
	int size;
	int capacity;
}SL;

void SLInit(SL* psl);
void SLDestory(SL* psl);

void SLPushBack(SL* psl, SLDataTpye x);
void SLPushFront(SL* psl, SLDataTpye x);

void SLPopBack(SL* psl);
void SLPopFront(SL* psl);

void SLprint(SL* psl);

void SLCheckCapacity(SL* psl);

void SLInsert(SL* psl, int pos, SLDataTpye x); 
void SLErase(SL* psl, int pos);

int SLFind(SL* psl, SLDataTpye x);